#!/bin/bash
rm -rf C:/Users/k/AppData/Local/Temp/NanoHTTPD-*
rm -rf C:/Users/k/AppData/Local/Temp/kotlin-daemon*
rm -rf C:/Users/k/AppData/Local/Temp/native-platform*
rm -rf C:/Users/k/AppData/Local/Temp/charles*
rm -rf C:/Users/k/AppData/Local/Temp/pack_*
rm -rf C:/Users/k/AppData/Local/Temp/byteBuddyAgent*
rm -rf C:/Users/k/AppData/Local/Temp/imageio*_MEI
rm -rf C:/Users/k/AppData/Local/Temp/_MEI*
rm -rf C:/Users/k/AppData/Local/Temp/jna-*
time=`date "+%F %X"`
echo "${time} api-service-start running pid=$$" >> logs.txt
jct api-service ./ -p 9001 > api-service.log 2>&1 &
if [ $? == 0 ]
then 
    echo "${time} api-service started pid=$!" >> logs.txt
else
    echo "${time} api-service start fail" >> logs.txt
fi